# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-librelingo-types
pkgver=3.2.0
pkgrel=1
pkgdesc="Data types to be used in Python packages for LibreLingo"
url="https://github.com/kantord/LibreLingo"
arch="noarch"
license="AGPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/l/librelingo_types/librelingo_types-$pkgver.tar.gz"
options="!check" # No tests in the PyPi package
builddir="$srcdir/librelingo_types-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
1889eaa4c7b9a6912f78f340f97f1009312d6fcb43bacc3e8cb7f3a0c785fa2ef73b4813e325381a36bff7e9c0c9c70ec3bf15e48fb8da0aaa672a08c32c7366  librelingo_types-3.2.0.tar.gz
"
